<template>
  <TresAmbientLight :args="['white', 5.5]"></TresAmbientLight>
  <TresOrbitControls
    v-if="camera && renderer"
    :args="[camera, renderer?.domElement]"
  ></TresOrbitControls>
</template>

<script setup lang="ts">
import * as THREE from "three";
import { useLoader, useTresContext, extend, useRenderLoop } from "@tresjs/core";
import { OrbitControls } from "three/addons/controls/OrbitControls";

extend({ OrbitControls });
const { scene, camera, renderer } = useTresContext();
</script>

<style scoped></style>
